package com.example.department.Impl;

import com.example.department.Entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ActivityImpl {
    List<Activity> getActivityList(@Param("activity") Activity activity); //查询全部活动信息
    int addActivity(@Param("activity") Activity activity); //增加活动信息
    int delActivity(@Param("aid") int aid); //删除活动信息
    int updateActivity(@Param("activity") Activity activity); //修改活动信息
    Activity getActivityById(@Param("aid") int aid); //根据id查询
    int getActivityCount();
    List<Activity> getActivityPageList(@Param("activityname") String activityname,@Param("activityaddress") String activityaddress,@Param("Start") int Start,@Param("Page") int Page);//获取列表
}
